package com.mujin.keji.collectionsystem.module.main.views;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.mujin.keji.collectionsystem.R;
import com.mujin.keji.collectionsystem.base.BaseFragment;
import com.mujin.keji.collectionsystem.module.outboundtask.views.OutBoundtaskListActivity;
import com.mujin.keji.collectionsystem.module.protectionrules.view.OutRuleActivity;

/**
 * 主页面左边fragment碎片
 *
 * @author weishixiong
 * @Time 2018-03-19
 */
public class TestTwoFragment extends BaseFragment implements View.OnClickListener {
    private TextView tvVersion;
    private RelativeLayout rlHistoryVersion;





    @Override
    public void onClick(View view) {

    }

    @Override
    protected void loadData() {

    }

    @Override
    protected void createViewModel() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_abaout;
    }

    @Override
    protected void initView(View view, Bundle savedInstanceState) {
        tvVersion = (TextView) view.findViewById(R.id.tv_version);
        rlHistoryVersion = (RelativeLayout) view.findViewById(R.id.rl_history_version);

    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {
        rlHistoryVersion.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getmActivity(), OutRuleActivity.class));
            }
        });
    }
}
